<template>
  <div class="home page">
    <div class="opter">
      <van-button
        class="default"
        type="info"
        v-for="(item,index) in button"
        :key="index"
        @click="linkToPage(item)"
      >{{item}}</van-button>
    </div>
  </div>
</template>

<script>
export default {
  name: 'home',
  data () {
    return {
      button: ['fullscreen', 'rule', 'wxshare', 'swiper', 'draw', 'soundeffect', 'opening', 'video', 'vote', 'register', 'tab', 'shake', 'photoClip', 'screenshot', 'test']
    }
  },
  methods: {
    linkToPage (page) {
      this.$router.replace({ name: page });
    }
  }
}
</script>

<style lang="less" scoped>
.home {
  background-color: #ffffff;
}
.opter {
  display: flex;
  flex-wrap: wrap;
  width: 100%;
}
.default {
  margin-right: 0.3rem;
  margin-bottom: 0.3rem;
}
</style>
